package cn.kgc.vue.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_student
 */
@TableName(value ="sys_student")
@Data
@ExcelTarget("student")
public class Student implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学号
     */
    @TableField(value = "student_no")
    @Excel(name = "学号",orderNum = "1")
    private String studentNo;

    /**
     * 学生姓名
     */
    @TableField(value = "name")
    @Excel(name = "姓名",orderNum = "2")
    private String name;

    /**
     * 年龄
     */
    @TableField(value = "age")
    @Excel(name = "年龄",orderNum = "3")
    private Integer age;

    /**
     * 班级
     */
    @TableField(value = "clazz")
    @Excel(name = "班级",orderNum = "4")
    private String clazz;

    /**
     * 课程编号
     */
    @TableField(value = "course_id")
    @Excel(name = "课程编号",orderNum = "5")
    private Integer courseId;

    /**
     * 入学时间
     */
    @TableField(value = "school_year")
    @Excel(name = "入学时间",importFormat = "yyyy/MM/dd",exportFormat = "yyyy/MM/dd",orderNum = "7")
    private Date schoolYear;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 手机号
     */
    @TableField(value = "tel")
    @Excel(name = "手机号",orderNum = "6")
    private String tel;

    /**
     * 乐观锁
     */
    @TableField(value = "version")
    private Integer version;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}